from django.contrib import admin

from .models import *


@admin.register(Tag)
class TagAdmin(admin.ModelAdmin):
    list_display = list_display_links = ['name', 'user_id']


@admin.register(Works)
class WorksAdmin(admin.ModelAdmin):
    list_display = list_display_links = ['id', 'name', 'user_id']


@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    list_display = list_display_links = ['message', 'user_id']


@admin.register(Collection)
class CollectionAdmin(admin.ModelAdmin):
    list_display = list_display_links = ['id', 'work_id', 'user_id', 'status']
